package com.siyue.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.siyue.model.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author eric zhao
 * @since 2024-06-10
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select token as token from sys_user where token = #{token}")
    User selectUserByToken(String token);

}
